from ursina import *

app = Ursina()

window.size = (591, 864)
window.color = color.white

global me1_texture, me2_texture

background = Entity(
    model='quad',
    texture='images/background.png',
    scale=(window.size[0], window.size[1]),
    position=(0, 0, 1),
    origin=(0, 0)
)

me1_texture = Entity(
    model='quad',
    texture='images/me1.png',
    scale=(2, 2),
    position=(0, -9)
)



def update():
    if held_keys['left arrow']:
        me1_texture.x -= 2 * time.dt
    if held_keys['right arrow']:
        me1_texture.x += 2 * time.dt
    if held_keys['up arrow']:
        me1_texture.y += 2 * time.dt
    if held_keys['down arrow']:
        me1_texture.y -= 2 * time.dt

window.fps_counter.enabled = False
window.exit_button.visible = False


def input(key):
    if key == 'escape':
        quit()



app.run()